package gui;
import model.OOAttribute;
import model.OOClass;
import model.OOMethod;
import model.OOModel;

public class ClassDiagramManagerDriver {
public static void main (String[] args){
	OOClass class1=new OOClass();
	OOClass class2=new OOClass();
	
	OOAttribute attr1=new OOAttribute();
	OOAttribute attr2=new OOAttribute();
	OOAttribute attr3=new OOAttribute();
	OOMethod meth1=new OOMethod();
	OOMethod meth2=new OOMethod();
	OOMethod meth3=new OOMethod();
	OOMethod meth4=new OOMethod();
	
	OOAttribute p1=new OOAttribute();
	
	meth1.addParameter(p1);
	p1.setName("p1");
	meth1.setName("meth1");
	meth2.setName("meth2");
	meth3.setName("meth3");
	meth4.setName("meth4");
	class1.addMethod(meth1);
	class1.addMethod(meth2);
	class1.addMethod(meth3);
	class1.addMethod(meth4);
	attr1.setName("attr1");
	attr1.setName("attr2");
	attr1.setName("attr3");
	
	class1.setName("class1");
	class2.setName("class2");
	
	attr1.setAccessModifier("public");
	attr2.setAccessModifier("private");
	attr3.setAccessModifier("public");
	
	class1.addVariable(attr1);
	class1.addVariable(attr2);
	class1.addVariable(attr3);

	OOAttribute attr21=new OOAttribute();
	OOAttribute attr22=new OOAttribute();
	OOAttribute attr23=new OOAttribute();
	
	attr21.setName("attr21");
	attr22.setName("attr22");
	attr23.setName("attr23");
	
	attr21.setAccessModifier("public");
	attr22.setAccessModifier("private");
	attr23.setAccessModifier("public");
	
	OOMethod meth21=new OOMethod();
	OOMethod meth22=new OOMethod();
	OOMethod meth23=new OOMethod();
	OOMethod meth24=new OOMethod();
	
	
	meth21.setName("meth21");
	meth22.setName("meth22");
	meth23.setName("meth23");
	meth24.setName("meth24");
	
	meth21.setAccessModifier("public");
	meth22.setAccessModifier("public");
	meth23.setAccessModifier("public");
	meth24.setAccessModifier("public");
	
	class2.addMethod(meth21);
	class2.addMethod(meth22);
	class2.addMethod(meth23);
	class2.addMethod(meth24);
	
	class2.addVariable(attr21);
	class2.addVariable(attr22);
	class2.addVariable(attr23);
	OOModel m1=new OOModel();//instantiating OOModel object
	m1.classes.add(class1);
	m1.classes.add(class2);


//DiagramManager2 m1=new DiagramManager2(m1);//sending it to DiagramManager2 Constructor
//m1.generateShapes();//whenever we need  to draw shapes of classes we call this method

}
}
